package Servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.RoomInfo;
import Manage.RoomManage;


public class UpdateRoomServlet extends HttpServlet {
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
	request.setCharacterEncoding("utf-8");
	response.setContentType("text/html;charset=utf-8");
	String roomId = request.getParameter("roomId");
	RoomManage customerm = new RoomManage();
	RoomInfo r = customerm.FindRoomId(roomId);
	request.setAttribute("r", r);
	request.getRequestDispatcher("UpdateRoom.jsp").forward(request, response);
	}
}
